//
//  MLAEateryManageVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/30.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLAEateryManageVC.h"
#import "MLAEateryManageSalesVC.h"
#import "MLAEateryShopInfoVC.h"
#import "MLAEateryFoodTypeVC.h"

@interface MLAEateryManageVC ()

@end

@implementation MLAEateryManageVC

- (void)viewDidLoad {
    [super viewDidLoad];

    [self configTitle:@"店铺管理"];
    self.titlesArr = @[@"商铺信息",@"售卖统计",@"商品类型"];
    [self.tableView reloadData];
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [super tableView:tableView didSelectRowAtIndexPath:indexPath];
    if (indexPath.row == 0) {
        CX_Log(@"商铺信息");
        MLAEateryShopInfoVC *esiVC = [[MLAEateryShopInfoVC alloc] init];
        esiVC.model = _model;
        [self.navigationController pushViewController:esiVC animated:YES];
    } else if (indexPath.row == 1) {
        CX_Log(@"售卖统计");
        MLAEateryManageSalesVC *emsVC = [[MLAEateryManageSalesVC alloc] init];
        [self.navigationController pushViewController:emsVC animated:YES];
    } else if (indexPath.row == 2) {
        CX_Log(@"商品类型");
        MLAEateryFoodTypeVC *eftVC = [[MLAEateryFoodTypeVC alloc] init];
        [self.navigationController pushViewController:eftVC animated:YES];
    }
}

@end
